package com.shanghai.shanghaielectric.UI;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

import com.shanghai.shanghaielectric.MainActivity;
import com.shanghai.shanghaielectric.R;

/**
 * 欢迎页面<br/>
 * 
 * @author liudanhua
 * @version 2014-5-21 下午2:40:32
 */
public class LogoActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_logo);
		
//	   LogUtil.e("liudanhua","=222222222===="+Settings.System.getInt(LogoActivity.this.getContentResolver(), Settings.System.SCREEN_OFF_TIMEOUT, 0));
//		Dwin.getInstance().showNavigation();
//		Dwin.getInstance().hideNavigation();
		Handler h = new Handler();
		h.postDelayed(new Runnable() {
			public void run() {
				Intent intent = new Intent();
				intent.setClass(LogoActivity.this, MainActivity.class);// 修改
				startActivity(intent);
				finish();
			}
		}, 1000);
	}
}
